//
//  LoginController.h
//  
//
//  Created by gzty1 on 12-8-5.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//  快速登录控制器

#import <Foundation/Foundation.h>
#import "ASIHTTPRequestDelegate.h"

@class TextFieldDialog;
@class LoginController;

@protocol LoginControllerDelegate <NSObject>
-(void)loginControllerSuccess:(LoginController*)loginController;
@end

@interface LoginController : NSObject <UIAlertViewDelegate,ASIHTTPRequestDelegate>
{
    TextFieldDialog* dialog_;
    id<LoginControllerDelegate> delegate_;
}

@property (nonatomic,assign) id<LoginControllerDelegate> delegate;

+(BOOL)hasLogin;
-(void)login;
+(void)logout;

@end
